import BlankLayout from "@/layouts/BlankLayout";
import DevLayout from "@/layouts/DevLayout";
import KeepLayout from "@/layouts/KeepLayout";
// import IndexPage from '@/pages'
import BigScreen from "@/pages/BigScreen";

const routes = (firstPath: string) => {
  return [
    {
      name: "大屏",
      path: firstPath + "/bigScreen",
      component: BigScreen,
    },
  ];
};

export default [
  {
    path: "/",
    component: BlankLayout,
    routes: [
      // 带layout的页面
      {
        path: "/layout",
        component: DevLayout,
        routes: routes("/layout"),
      },
      // 不带layout，微页面专属
      {
        path: "/",
        component: KeepLayout,
        routes: routes("/cnpc-route"),
      },
    ],
  },
];
